﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace exerciseSeven
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入一段英文：");
            string instr = Console.ReadLine();
            int captial = 0;
            int letter = 0;
            foreach (char ch in instr)
            {
                if (char.IsUpper(ch))
                {
                    captial++;
                }
                if (char.IsLower(ch))
                {
                    letter++;
                }

            }
            Console.WriteLine("大写字母个数为：" + captial);
            Console.WriteLine("小写字母个数为：" + letter);
            Console.ReadKey();
        }
    }
}
